<#include '/admin/sonheader.html' > 
<#assign dateformat="com.enation.framework.directive.DateformateDirective"?new()>
<style>
tbody tr{
border-bottom:1px solid #ccc;}
tr th{
background:#e2e2e2;
}
</style>

<div class="main">
<form id="order_form">
	<div class="shadowBoxWhite  whiteBox">
		<div  class="list-form">
			<table  border="1" id="orderbasedata" style="width: 99%" class="layui-table site-table table-hover" lay-skin="row" >
				  <tbody>
					 	<tr>
						    <th>订单号：</th>
						    <td>${(payment.order_sn)!''}</td>
						    <th>支付方式：</th>
	   						<td>${payment.pay_method}</td>
					  	</tr>
					 	<tr> 
	    					<th>订单金额：</th>
	    					<td >${ord.order_amount?string('#.##')}</td>
	    					<th>付款人：</th>
	   			 			<td>${payment.pay_user}</td>
	   					</tr>
					   	<tr>	
							<th>应付款： </th>
							<td>${payment.money?string('#.##')}</td>
							<th>已结算金额：</th>
							<td>${payment.paymoney?string('#.##')!''}</td>
	   					</tr>
				 </tbody>
			</table>
		</div>
	<br>
	<div class="list-form" >
		<table  border="1" id="orderbasedata" id="paydata" class="layui-table site-table table-hover"   style="width: 99%" lay-skin="line">
			<thead>
				<tr>
					<th formatter="formatdate">付款日期</th>
					<th >付款金额</th>
					<th >操作人</th>
				</tr>
			</thead>
	        <tbody>
		        <#list paymentList as item>
			         <tr>
			         	  <td><@dateformat pattern="yyyy-MM-dd HH:mm:ss" time="${item.pay_date?c}" /></td>
				          <td >${item.pay_money?string('#.##')!''}</td>
				          <td >${item.admin_user}</td>
			        </tr>
				</#list>
	        </tbody>
     		</table> 
		</div>
	</div>
	</form>
	
</div>

<script>
	function formatdate(value,row,index){
		return getFormatDateByLong(value, "yyyy-MM-dd hh:mm:ss");
	}
</script>
<#include '/admin/footer.html' >
